package com.offcn.service.impl;

import com.github.pagehelper.PageInfo;
import com.offcn.dao.EvaluateMapper;
import com.offcn.pojo.Evaluate;
import com.offcn.pojo.EvaluateExample;
import com.offcn.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvaluateServiceImpl implements EvaluateService {

    @Autowired
    private EvaluateMapper evaluateMapper;

    @Override
    public PageInfo<Evaluate> queryList(int currentPage, int pageSize) {
//        EvaluateExample evaluateExample = new EvaluateExample();
//        EvaluateExample.Criteria criteria = evaluateExample.createCriteria();
//        criteria.
        List<Evaluate> list = evaluateMapper.selectByExample(null);
        PageInfo<Evaluate> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }
}
